package cn.zyy.hotel.utils;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

//树节点属性类
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class TreeNode {

    private Integer id; //菜单节点编号
    private Integer parentId; //父节点菜单编号
    private String title; //菜单节点名称
    private String icon; //菜单节点图标
    private String href; //菜单路径
    private Boolean spread; //是否展开
    //子节点菜单
    private List<TreeNode> children = new ArrayList<TreeNode>();
    //复选框是否被选中
    private String checkArr = "0";//默认不选中
    private Integer butt;  //是否是菜单  0 - 菜单  1 - 按钮
    private String permissions;  //权限标识

}
